04. Understanding Custom Views

21 3 AAK Custom Views Concept V2

Quiz

Which of the following are steps in creating a custom view?

SOLUTION:
  • Extend View, or extend a View subclass.
  • Override behavior or aspects that you want to change.
  • Override `onDraw()`, `onMeasure()`, and other methods.
  • Use a custom view class as a UI widget in XML layout.
  • Respond to user interaction and redraw.
  • Define custom attributes.